package com.hopu.mapper;

import com.hopu.pojo.Area;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AreaMapper {
    List<Area> findAllAreaPageData();

    int addArea(@Param("aname") String aname);

    int uppArea(@Param("aname") String aname, @Param("aid") int aid);

    Area getAreaByName(@Param("aname") String aname);

    Area getAreaById(String aid);

    List<Area> findAllArea();
}
